package com.xk.order;

import com.xk.order.service.OrderService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class PayUrl {
    /**
     * 测试生成二维码链接
     */
    @Autowired
    private OrderService orderService;

    @Test
    public void run1(){

        //1196352996540289024
        String payUrl = orderService.createPayUrl(1196352996540289024L);
        System.out.println("返回的链接地址为:"+payUrl);

    }
}
